<#assign orderstatus= "com.enation.app.shop.core.taglib.OrderStatusDirectiveModel"?new()>
<div class="top_space"></div>
<div id="yk_dd_wh">
<h1>游客订单查询</h1>
	<form action="searchorder.html" method="GET" id="searchForm">
	<input type="hidden" name="action" value="search"/>

    <ul >
    
        	<li ><label>收&nbsp;货&nbsp;人：</label><input name="ship_name" type="text" value="${ship_name!''}" ></input><p>&nbsp;&nbsp;（请输入收货人姓名）</p></li>
            
			<li><label>联系方式：</label><input name="ship_tel" value="${ship_tel!''}" type="text"/><p>&nbsp;&nbsp;（请输入手机或固定号码）</p></li>
            <li ><a href="###" id="search_Orders">搜索订单</a></li>
       

    </ul>
    </form>
    
    <ul class="rim_yesno">
        <li ><a href="member_order.html">会员订单查询</a></li>
        <li>还不是会员？<span><a href="register.html">立即注册</a></span></li>
    </ul>
    
    <ul class="rim_list">
 
    	<ol class="visitor_list">
    		<li class="visitor_number">订单号</li>
        	<li>下单时间</li>
        	<li>收货人</li>
        	<li>总价</li>
        	<li>状态</li>
        	<li>付款方式</li>
        	<li>配送方式</li>
        	<li>操作</li>
        </ol>
        <#if ordersPage?exists>
        <#list ordersPage.result as order>
        <ol class="visitor_good_list">
        	<li class="visitor_number">
        	<a href="orderdetail_${order.sn}.html">${order.sn}</a></li>
        	<li><@dateformat time="${order.create_time?c}" pattern="yyyy-MM-dd HH:mm"/></li>
        	<li>${order.ship_name}</li>
        	<li>￥${order.order_amount?string("0.##")}</li>
        	<li><@orderstatus status="${order.status}" type="order" /></li>
        	<li>${order.payment_name}</li>
        	<li>${order.shipping_type}</li>
        	<li>
        	<a href="orderdetail_${order.sn}.html">详情</a>&nbsp;
       
			<#if order.status ==ORDER_NOT_PAY && !order.isCod >
			<#if order.isOnlinePay  >
				<a href='orderpay.html?sn=${order.sn}'>立即支付</a>
			<#else >
				<a href='orderpay.html?sn=${order.sn}'>提交凭证</a>
			</#if>        	        	
        	</#if>
        	</li>
        </ol>
        </#list>
        </#if>
        <ol class="bottom">
        	 
        	<#if ordersPage?exists>
        	<@pager pageno="${page}" pagesize="${pageSize}" totalcount="${totalCount}" />
        	</#if>
        	  <div class="clear"></div>
        </ol>
        
       
    </ul>
</div>

<div id="yk_dd_wh2">
	<h2 class="yk_dd_ul1x">注册会员有惊喜</h2>
    <ul class="yk_zc_wh">
    	<ol>
    	<li><a href="register.html"><@image src="${ctx}/themes/default/images/14.jpg" /></a></li>
        <li><a href="register.html"><@image src="${ctx}/themes/default/images/15.jpg" /></a></li>
        <li ><a href="register.html"><@image src="${ctx}/themes/default/images/16.jpg" /></a></li>
        </ol>
        <ol class="visitor_register"><li><a href="register.html">点击快速注册</a></li></ol>
    </ul>
</div>

<script type="text/javascript">
$(function(){

	$("#search_Orders").bind("click",function(){
		$("#searchForm").submit(); 
	});
});
</script>